var window = this;
function SessionStorage (){
    this.cache = {};
}
SessionStorage.prototype.clear = function(){
    this.cache = {};
}
SessionStorage.prototype.removeItem = function(key){
    delete this.cache[key];
}
SessionStorage.prototype.setItem = function(key,data){
   this.cache[key] = data;
}
SessionStorage.prototype.getItem = function(key){
   return this.cache[key];
}
SessionStorage.prototype.key = function(index){
}
var sessionStorage = new SessionStorage();
var ContextClassType = {
    ConnectToPilot: 'ConnectToPilot',
    QNSContext: 'QNSContext',
    ProxyInvokeContext: 'ProxyInvokeContext',
    CommandContext: 'CommandContext',
    ProxyLoginCommandContext: 'ProxyLoginCommandContext',
    OnPilotConnectContext: 'onPilotConnectContext',
    OnPilotDisConnectContext: 'onPilotDisConnectContext',
    OnPilotConnectFailContext: 'onPilotConnectFailContext',
    OnPilotReConnectFailContext: 'onPilotReConnectFailContext',
    OnPilotErrorContext: 'onPilotErrorContext',
    CancelSubCommandContext: 'CancelSubCommandContext',
    DisconnectToPilotContext: 'DisconnectToPilotContext',
    LoginToPilotContext: 'LoginToPilotContext',
    PilotFuncInvokeContext: 'PilotFuncInvokeContext',
    PilotFuncResultContext: 'PilotFuncResultContext',
}

var CommandType = {
    CommandTypeOnlyQuery: 'query',
    CommandTypeOnlySubscribe: 'subscribe',
    CommandTypeQueryAndSubScribe: 'qns',
    CommandTypePageQuery: 'PageQuery',
    CommandTypeProxyInvoke: 'ProxyInvoke',
    CommandTypeProxyList: "ProxyList",
    CommandTypeMsgDefList: "MsgDefList",
    CommandTypePageControlResponse: "PageControlResponse",
    CommandTypeProxyLogin: "ProxyLogin",
    CommandTypeProxyLogout: "ProxyLogout",
}